package cn.z2huo.core.exception;

import cn.z2huo.core.status.StatusCode;
import cn.z2huo.core.status.second.SecondStatusCode;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class ServerException extends BaseException {

    public final static StatusCode STATUS_CODE = StatusCode.SERVER_ERROR;

    public ServerException(String message) {
        super(STATUS_CODE, message);
    }

    public ServerException(String message, Throwable cause) {
        super(STATUS_CODE, message, cause);
    }

    public ServerException(SecondStatusCode secondStatusCode, String message) {
        super(STATUS_CODE, secondStatusCode, message);
    }

    public ServerException(SecondStatusCode secondStatusCode, String message, Throwable cause) {
        super(STATUS_CODE, secondStatusCode, message, cause);
    }

}
